﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Diagnostics;
using System.ComponentModel;

namespace Flame
{
    public class AutoIt
    {
        string _exePath;
        public AutoIt(string exePath)
        {
            _exePath = exePath;
        }
        public void Start(string script)
        {
            string path = Path.GetTempFileName();
            File.WriteAllText(path, script);
            Process.Start(_exePath, path);
        }
    }
}
